begin
  require 'main/init'
rescue LoadError
  require 'src/main/ruby/main/init'
end
require 'net/http'
require 'json'
require 'lib/configuration'
require 'lib/crawling'
module Testing
  def self.print_info
    puts "The Ruby VM is: #{RUBY_DESCRIPTION}"
    puts 'My Loadpath is:'
    puts $:
    puts 'My classpath is:'
    puts $CLASSPATH
    puts 'Classpath empty!' if (!$CLASSPATH || $CLASSPATH.size == 0)
    require 'rubygems'
    require 'rubygems/command_manager'
    ['GEM_HOME', 'GEM_PATH'].each { |var| puts "#{var}:"; puts ENV[var] || 'NULL' }
    puts 'RUBYGEMS_DIR:'
    puts Gem::RUBYGEMS_DIR
    puts 'List of installed gems:'
    Gem::CommandManager.instance.run('list')
    require 'pathname'
    puts "CWD: #{Pathname('.').realpath}"
    puts "Db4o: #{com.db4o.Db4oEmbedded}"
    puts "ScriptContainer: #{de.recipeminer.tools.RubyScriptContainerProvider}"
    puts "In a Jar? #{de.recipeminer.tools.Tools.executedFromJar}"

    puts de.recipeminer.tools.Tools
    puts de.recipeminer.tools.Tools.inspect
    puts "In a Jar? #{Java::DeRecipeminerTools::Tools.executed_from_jar}"
  end
end
Testing::print_info